//package edu.gym4all.data.sqlite.android.init;
//
//import android.content.Context;
//import android.database.SQLException;
//import android.database.sqlite.SQLiteDatabase;
//import android.database.sqlite.SQLiteOpenHelper;
//import android.util.Log;
//
//public class SQLiteAssocExerciseTrainingInit extends SQLiteOpenHelper {
//
//	public static final String TB_ASSOC_EXERCISE_TRAINING = "exercise";
//	public static final String COD_EXERCISE = "cod_exercise";
//	public static final String COD_TEX = "cod_exercicio_training";
//	public static final String COD_TRAINING = "cod";
//	public static final String TB_EXERCISE = "exercise";
//	public static final String TB_TRAINING = "tb_training";
//	private static final String DATABASE_NAME = "gym4all";
//	private static final int DATABASE_VERSION = 1;
//
//	private final Context contexto;
//
//	private static final String CREATE_ASSOC_EXERCISE_TRAINING_TB = "create table "
//			+ TB_ASSOC_EXERCISE_TRAINING
//			+ "( "
//			+ COD_TEX
//			+ " integer primary key autoincrement, "
//			+ COD_EXERCISE
//			+ " text not null FOREIGN KEY ("
//			+ COD_EXERCISE
//			+ ") REFERENCES "
//			+ TB_EXERCISE
//			+ "("
//			+ COD_EXERCISE
//			+ "), "
//			+ COD_TRAINING
//			+ "text not null, FOREIGN KEY ("
//			+ COD_TRAINING
//			+ ") REFERENCES "
//			+ TB_TRAINING + "(" + COD_TRAINING + "));";
//
//	public SQLiteAssocExerciseTrainingInit(Context context) {
//		super(context, DATABASE_NAME, null, DATABASE_VERSION);
//		this.contexto = context;
//	}
//
//	@Override
//	public void onCreate(SQLiteDatabase db) {
//		db.beginTransaction();
//		try {
//			db.execSQL(CREATE_ASSOC_EXERCISE_TRAINING_TB);
//			db.setTransactionSuccessful();
//		} catch (SQLException e) {
//			Log.e("Erro ao criar as tabelas e testar os dados", e.toString());
//		} finally {
//			db.endTransaction();
//		}
//	}
//
//	@Override
//	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
//		// TODO Auto-generated method stub
//	}
//}
//
//class MyEnum {
//
// }